import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export interface IStore {
  isBack: boolean;
}

export default new Vuex.Store({
  state: {
    // 标记路由是否倒退
    isBack: false,
  },
  mutations: {
    // 更新 isBack 的状态
    SET_ISBACK(state, isBack) {
      state.isBack = isBack;
    },
  },
  actions: {

  },
});
